package com.library.util;

import com.library.entity.Student;

public class StudentContext {
    private static final ThreadLocal<Student> student = new ThreadLocal<>();

    public static void setStudent(Student student) {
        StudentContext.student.set(student);
    }

    public static Student getStudent() {
        return student.get();
    }

    public static void removeStudent() {
        student.remove();
    }
}
